package cn.cnsuh.剑指offer.q40_最小的k个数;

import java.util.Arrays;

public class Main {
    static int[] getLeastNumbers(int[] arr, int k) {
        Arrays.sort(arr);
        int[] res = new int[k];
        for(int i = 0 ; i < k ; i++){
            res[i] = arr[i];
        }
        return res;
    }
}
